﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace lcmyjobs.Web.Controls
{
    public partial class EnterpriseHead : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                lcmyjobs.BLL.adverts ad = new BLL.adverts();
                DataSet ds;
                ds = ad.GetAdvnid(30);
                if (ds.Tables[0].Rows.Count == 1)
                {


                    HyperLink1.ImageUrl = "~" + ds.Tables[0].Rows[0][0].ToString();
                    HyperLink1.NavigateUrl = ds.Tables[0].Rows[0][1].ToString();


                }
            }

        }
    }
}